Repository navigation
Instalação totalmente guiada: assistente interativo para os segredos - #44
Merged
Merged
Conversation
Antes, senha do qBittorrent, claim do Plex e Cloudflare Tunnel exigiam comandos manuais depois do install.sh. Agora, com terminal disponível, o provision.sh pergunta cada um na hora (login/criação do túnel incluídos) e só cai no caminho manual documentado no README quando não há tty (automação/CI) ou a pergunta foi pulada. install.sh passou a listar só o que ficou pendente, em vez do texto fixo de sempre. De quebra: corrige a porta do qBittorrent no exemplo de config.yml do README (8081, não 8080) e um curl|grep em install.sh que quebraria o script sob set -e se o grep não achasse match.
t00ls-dev
added a commit
that referenced
this pull request
Aug 18, 2026
Instalação totalmente guiada: assistente interativo para os segredos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
provision.shganha um "assistente interativo": com terminal disponível, pergunta a senha da WebUI do qBittorrent e, se quiser, conduz o Cloudflare Tunnel inteiro (cloudflared tunnel login, criação do túnel, hostnames,config.yml,route dns). Também passa a perguntar o token de claim do Plex assim que o serviço confirma que subiu, reiniciando pra validar.curl | sudo bashsem tty) tudo isso é pulado em silêncio — mesmo padrão já usado pela pergunta doPLEXDEN_HOME, testado nesta PR com um pty real simulando respostas e o caminho sem tty.install.sh: a mensagem final agora lista só o que ficou pendente, em vez do texto fixo de 3 passos manuais.Correções de quebra
config.ymldo README (PR anterior) apontava o qBittorrent pra porta8080; a WebUI roda em8081— corrigido.curl | grepnovo eminstall.shquebraria o script sobset -e/pipefailse ogrepnão achasse match — corrigido com fallback seguro.Test plan
bash -n+shellcheckem install.sh/provision.sh/e2e.shpython3 -m unittest discover -s tests(31 testes)provision.sh --check(dry-run)cloudflaredstubado —credentials.enveconfig.ymlgerados corretamente